package com.zhangye.test.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhangye.test.mapper.InfomationMapper;
import com.zhangye.test.model.Infomation;


/**
 * 信息表
 * 作者： 张叶
 * 创建时间：2018年6月22日  上午9:34:34
 */
@Service
public class InfomationService {

	@Autowired
	private InfomationMapper infomationMapper;
	
	
	public List<Infomation> selectByWhere(String where){
		List<Infomation> list = infomationMapper.selectByWhere(where);
		return list;
	}
	
	
	public int deleteByWhere(String where){
		int i = infomationMapper.deleteByWhere(where);
		return i;
	}
	
	
	public int insert(Infomation info){
		int i = infomationMapper.insert(info);
		return i;
	}
}
